#pragma once
#include "GameObject.h"
#include "../SGD Wrappers/SGD_Math.h"


class FlameJetBox;
class Emitter;

class FlameJet : public GameObject
{
	//Create a gameobject class 'child'
	FlameJetBox* fireCollBox;
	//Delay between jet bursts
	float fireDelay;
	//Time before it stops firing
	float fireTime;
	//Is it firing?
	bool isFiring;
	//Spew flame!
	Emitter* flameEmitter;

	tVector2D direction;

public:
	FlameJet(void);
	virtual ~FlameJet(void);

	virtual void Update(float deltaTime);
	virtual void Render(void) const;
	virtual void HandleCollision(GameObject& other, CollisionInfo& info);
	void setDirection(tVector2D dir) {direction = dir;}; 

};

